package com.mckillion.Exercise12;

public class Boat extends Vehicle{

	public Boat(){
			drivingBehaviour = new RoadBehaviour();
			waterBehaviour = new FloatBehaviour();
		}
	
	@Override
	public void display() {
		System.out.println("I am a boat");
	}
		
	public void setDrivingBehaviour(LandBehaviour db){
		drivingBehaviour = db;
	}

	public void setWaterBehaviour(WaterBehaviour wb){
		waterBehaviour = wb;
	}
}
